<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title>${siteCompany.siteName!} - 登录</title>
    <meta name="author" content="${siteCompany.companyName!}">
    <meta name="keywords" content="${siteCompany.keywords}">
    <meta name="description" content="${siteCompany.description}">
    <link rel="stylesheet" href="/static/libs/layui-v2.6.8/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/css/login-mobile.css" media="all">
    <link rel="shortcut icon" href="/static/favicon.ico">
</head>
<body>
<div class="login-code-wrap">
    <div class="school-name">${siteCompany.siteName!}</div>
    <div class="form-wrap">
        <div class="title">登录</div>
        <div class="form-item">
            <label class="form-label">手机号</label>
            <div class="input-block">
                <input type="text" id="login_mobile" name="mobile"  placeholder="请输入手机号" class="input">
            </div>
        </div>
        <div class="form-item">
            <label class="form-label">验证码</label>
            <div class="input-block code-input">
                <input id="login_ran_code" type="text" name="ranCode"  placeholder="请输入图片验证码" class="input">
                <img id="captchaPic" src="/auth/captcha/text" alt="验证码，点击图片更换" onclick="this.src='/auth/captcha/text?random='+Math.random();">
            </div>
        </div>
        <div class="form-item">
            <label class="form-label">登录码</label>
            <div class="input-block code-input">
                <input type="text" id="login_mobile_code" name="title" placeholder="手机登录码" class="input">
                <button type="button" id="btn_send_login" class="btn-getCode">获取登录码</button>
            </div>
        </div>
    </div>
    <a href="javascript:void(0)" id="login_button" class="btn-submit">登 录</a>
    <!-- 底部区 -->
    <div class="footer">
        技术支持：广东启点学教育科技有限公司
    </div>
</div>
<script type="text/javascript">
    var qdxRedirect = "${comeUrl}";
    var qdxState = "${qdxState!}";
</script>
<script type="text/javascript" src="/static/libs/jquery/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="/static/libs/layui-v2.6.8/layui.js"></script>
<script type="text/javascript" src="/static/js/auth/login.js?v=2021082015"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#login_button').on('click', function () {
            doLogin();
        });
        $('#btn_send_login').on('click', function () {
            sendMobileCode('login');
        });
    });
</script>
</body>
</html>